package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.ApplyStatusEnum;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class RecruitInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 培训机构id
     */
    private Integer trainingOrganizationId;

    /**
     * 培训机构名称
     */
    private String trainingOrganizationName;

    /**
     * 审核用户id
     */
    private Integer applyUserId;

    /**
     * 有效期
     */
    private String termOfValidity;

    private String applyUserName;

    /**
     * 招聘岗位
     */
    private String position;

    /**
     * 单位名称
     */
    private String companyName;

    /**
     * 单位地址
     */
    private String companyAddress;

    /**
     * 公司介绍
     */
    private String companyIntroduce;

    /**
     * 岗位要求
     */
    private String workRequirement;

    /**
     * 岗位职责
     */
    private String workDuty;

    /**
     * 工作地点
     */
    private String workAddress;

    /**
     * 薪资待遇
     */
    private String salary;

    /**
     * 联系人
     */
    private String contacts;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 联系电话
     */
    private String tel;

    /**
     * 审核状态
     */
    private Integer applyStatus = ApplyStatusEnum.WAIT.getValue();

    private String teamCode = BaseTeamEnum.BASE.getValue();

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}